import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 流程列表-我的已办
export function myJobPage(params){
  return axios({
    url: assessCheckApi.myJobPage,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}

// 获取已办列表-通过当前流程id-自定义退回
export function queryAllYbJob(params){
  return axios({
    url: assessCheckApi.queryAllYbJob,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}

// 自定义-退回环节
export function returnUpperzdyFlowJob(data){
  return axios({
    url: assessCheckApi.returnUpperzdyFlowJob,
    method:'post' ,
    data:{...data},
    url_2:'outside',
  })
}

// 流程监控-分页查询
export function flowJkPage(data){
  return axios({
    url: assessCheckApi.flowJkPage,
    method:'post' ,
    data:{...data},
    url_2:'outside',
  })
}

// 请休假审批表-分页列表查询
export function list(params){
  return axios({
    url: assessCheckApi.list,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}

// 导出请休假数据-表格excel
export function exportqxjData(params){
  return axios({
    url: assessCheckApi.exportqxjData,
    method:'get',
    params:{...params},
    url_2:'outside',
    responseType: 'arraybuffer'
  })
}

// 列表-数据修订
export function Pagesjxd(params){
  return axios({
    url: assessCheckApi.Pagesjxd,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}
